package com.abel.quiz.schedule;/**
 * Created by abel.lin on 2017/4/12.
 */

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author abel.lin
 * @date_time 2017/4/12 10:12
 * @description
 */
//@PropertySource("classpath:/config.properties")
@PropertySources(value = {@PropertySource("classpath:/config.properties")})
@Component
public class TaskSchedule {
    private Logger log = LoggerFactory.getLogger(this.getClass());
//    @Autowired
//    private UctUserService uctUserService;

    /**
     * @param
     * @description 定时删除临时文件
     * cron表达式：* * * * * *（共6位，使用空格隔开，具体如下）
     * cron表达式：*(秒0-59) *(分钟0-59) *(小时0-23) *(日期1-31) *(月份1-12或是JAN-DEC) *(星期1-7或是SUN-SAT)
     * @author abel.lin
     * @date_time 2017/4/12 17:19
     */
//    @Scheduled(cron="${schedule.exp.delFile}")
//    public void delTempFile(){
//        log.info("开始删除文件");
//        FileHandleUtil.delFile();
//        log.info("删除文件结束");
//    }


}
